package com.qinggeng.project.system.domain;

import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import com.qinggeng.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商户信息对象 shop
 *
 * @author qinggeng
 * @date 2020-05-29
 */
@Data
public class Shop extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 商户名称
     */
    @Excel(name = "商户名称")
    private String name;

    /**
     * 省名称
     */
    @Excel(name = "省名称")
    private String province;

    /**
     * 城市名称
     */
    @Excel(name = "城市名称")
    private String city;

    /**
     * 区域名称
     */
    @Excel(name = "区域名称")
    private String area;

    /**
     * 商户地址
     */
    @Excel(name = "商户地址")
    private String address;

    /**
     * 商户经度
     */
    @Excel(name = "商户经度")
    private Float lng;

    /**
     * 商户纬度
     */
    @Excel(name = "商户纬度")
    private Float lat;

    /**
     * 联系人姓名
     */
    @Excel(name = "联系人姓名")
    private String contactName;

    /**
     * 联系人电话
     */
    @Excel(name = "联系人电话")
    private String contactPhone;

    /**
     * 营业时间
     */
    @Excel(name = "营业时间")
    private String businessTime;

    /**
     * 下班时间
     */
    @Excel(name = "下班时间")
    private String closingTime;

    /**
     * 配送范围
     */
    @Excel(name = "配送范围")
    private Double distScope;

    /**
     * 店铺图片
     */
    @Excel(name = "店铺图片")
    private String storeImgs;

    /**
     * 店铺资质
     */
    @Excel(name = "店铺资质")
    private String storePapers;

    /**
     * 账户ID
     */
    @Excel(name = "账户ID")
    private Long userId;

    /**
     * 是否删除 10=未删除 20=已删除
     */
    @Excel(name = "是否删除 10=未删除 20=已删除")
    private String delFalg;

    private BigDecimal balance;

    private Integer openState;

    private String userName;

    private String password;

    private String realPwd;

    private String avatar;
    //邀请码
    private  String inviteCode;

    private String qrcodeImg;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Float getLng() {
        return lng;
    }

    public void setLng(Float lng) {
        this.lng = lng;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getBusinessTime() {
        return businessTime;
    }

    public void setBusinessTime(String businessTime) {
        this.businessTime = businessTime;
    }

    public String getClosingTime() {
        return closingTime;
    }

    public void setClosingTime(String closingTime) {
        this.closingTime = closingTime;
    }

    public Double getDistScope() {
        return distScope;
    }

    public void setDistScope(Double distScope) {
        this.distScope = distScope;
    }

    public String getStoreImgs() {
        return storeImgs;
    }

    public void setStoreImgs(String storeImgs) {
        this.storeImgs = storeImgs;
    }

    public String getStorePapers() {
        return storePapers;
    }

    public void setStorePapers(String storePapers) {
        this.storePapers = storePapers;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDelFalg() {
        return delFalg;
    }

    public void setDelFalg(String delFalg) {
        this.delFalg = delFalg;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Integer getOpenState() {
        return openState;
    }

    public void setOpenState(Integer openState) {
        this.openState = openState;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealPwd() {
        return realPwd;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public String getQrcodeImg() {
        return qrcodeImg;
    }

    public void setQrcodeImg(String qrcodeImg) {
        this.qrcodeImg = qrcodeImg;
    }

    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }

    public void setRealPwd(String realPwd) {
        this.password = realPwd;
        this.realPwd = realPwd;
    }

    //配送范围
    private Double distance;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("province", getProvince())
                .append("city", getCity())
                .append("area", getArea())
                .append("address", getAddress())
                .append("lng", getLng())
                .append("lat", getLat())
                .append("contactName", getContactName())
                .append("contactPhone", getContactPhone())
                .append("businessTime", getBusinessTime())
                .append("closingTime", getClosingTime())
                .append("distScope", getDistScope())
                .append("storeImgs", getStoreImgs())
                .append("storePapers", getStorePapers())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFalg", getDelFalg())
                .append("qrcodeImg", getQrcodeImg())
                .toString();
    }
}
